import request from '@/tools/request'

export const redirect_my = (params) => {
  return request({
    method: 'post',
    url: '/intercept/thirdparty/wx/redirect/my',
    data: params,
    transformRequest: [
      function(data) {
        let ret = ''
        for (const it in data) {
          ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
        }
        return ret
      }
    ]
  })
}
export const system_customer_user_edit = (params) => {
  return request({
    method: 'post',
    url: '/intercept/thirdparty/system/system_customer_user/edit',
    data: params,
    transformRequest: [
      function(data) {
        let ret = ''
        for (const it in data) {
          ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
        }
        return ret
      }
    ]
  })
}